package executor.impl;/*
 * @auther 顶风少年
 * @mail dfsn19970313@foxmail.com
 * @date 2020-01-08 17:20
 * @notify
 * @version 1.0
 */

import executor.Executor;
import mapping.Configuration;
import mapping.MappedStatement;

public abstract class BaseExecutor implements Executor {
    @Override
    public Object query( String statementId, Object param) throws Exception {
        //如果一级缓存没有，则查询数据库
        return queryFormDataBase(statementId, param);
    }

    public abstract Object queryFormDataBase(String statementId, Object param) throws Exception;

}
